package com.iraeta.entity.main;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Objects;

/**
 * erpgq_somain
 * @author 
 */
public class ErpgqSomain implements Serializable {
    private Long autoid;

    private Long id;

    private String csocode;

    private Date ddate;

    private String cmaker;

    private String cbustype;

    private String ccusname;

    private String cdepcode;

    private String cdepname;

    private String cinvcode;

    private String cinvname;

    private BigDecimal iquantity;

    private String ccomunitname;

    private static final long serialVersionUID = 1L;

    public Long getAutoid() {
        return autoid;
    }

    public void setAutoid(Long autoid) {
        this.autoid = autoid;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCsocode() {
        return csocode;
    }

    public void setCsocode(String csocode) {
        this.csocode = csocode;
    }

    public Date getDdate() {
        return ddate;
    }

    public void setDdate(Date ddate) {
        this.ddate = ddate;
    }

    public String getCmaker() {
        return cmaker;
    }

    public void setCmaker(String cmaker) {
        this.cmaker = cmaker;
    }

    public String getCbustype() {
        return cbustype;
    }

    public void setCbustype(String cbustype) {
        this.cbustype = cbustype;
    }

    public String getCcusname() {
        return ccusname;
    }

    public void setCcusname(String ccusname) {
        this.ccusname = ccusname;
    }

    public String getCdepcode() {
        return cdepcode;
    }

    public void setCdepcode(String cdepcode) {
        this.cdepcode = cdepcode;
    }

    public String getCdepname() {
        return cdepname;
    }

    public void setCdepname(String cdepname) {
        this.cdepname = cdepname;
    }

    public String getCinvcode() {
        return cinvcode;
    }

    public void setCinvcode(String cinvcode) {
        this.cinvcode = cinvcode;
    }

    public String getCinvname() {
        return cinvname;
    }

    public void setCinvname(String cinvname) {
        this.cinvname = cinvname;
    }

    public BigDecimal getIquantity() {
        return iquantity;
    }

    public void setIquantity(BigDecimal iquantity) {
        this.iquantity = iquantity;
    }

    public String getCcomunitname() {
        return ccomunitname;
    }

    public void setCcomunitname(String ccomunitname) {
        this.ccomunitname = ccomunitname;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ErpgqSomain)) return false;
        ErpgqSomain that = (ErpgqSomain) o;
        return autoid.equals(that.autoid) && id.equals(that.id) && Objects.equals(csocode, that.csocode) && Objects.equals(ddate, that.ddate) && Objects.equals(cmaker, that.cmaker) && Objects.equals(cbustype, that.cbustype) && Objects.equals(ccusname, that.ccusname) && Objects.equals(cdepcode, that.cdepcode) && Objects.equals(cdepname, that.cdepname) && Objects.equals(cinvcode, that.cinvcode) && Objects.equals(cinvname, that.cinvname) && Objects.equals(iquantity, that.iquantity) && Objects.equals(ccomunitname, that.ccomunitname);
    }

    @Override
    public int hashCode() {
        return Objects.hash(autoid, id, csocode, ddate, cmaker, cbustype, ccusname, cdepcode, cdepname, cinvcode, cinvname, iquantity, ccomunitname);
    }
}